package com.shire.shire_interface.model.welcome;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WxWelcomeSettingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxWelcomeSettingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andMemberlimitIsNull() {
            addCriterion("memberLimit is null");
            return (Criteria) this;
        }

        public Criteria andMemberlimitIsNotNull() {
            addCriterion("memberLimit is not null");
            return (Criteria) this;
        }

        public Criteria andMemberlimitEqualTo(Integer value) {
            addCriterion("memberLimit =", value, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitNotEqualTo(Integer value) {
            addCriterion("memberLimit <>", value, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitGreaterThan(Integer value) {
            addCriterion("memberLimit >", value, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitGreaterThanOrEqualTo(Integer value) {
            addCriterion("memberLimit >=", value, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitLessThan(Integer value) {
            addCriterion("memberLimit <", value, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitLessThanOrEqualTo(Integer value) {
            addCriterion("memberLimit <=", value, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitIn(List<Integer> values) {
            addCriterion("memberLimit in", values, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitNotIn(List<Integer> values) {
            addCriterion("memberLimit not in", values, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitBetween(Integer value1, Integer value2) {
            addCriterion("memberLimit between", value1, value2, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMemberlimitNotBetween(Integer value1, Integer value2) {
            addCriterion("memberLimit not between", value1, value2, "memberlimit");
            return (Criteria) this;
        }

        public Criteria andMsgtypeIsNull() {
            addCriterion("msgType is null");
            return (Criteria) this;
        }

        public Criteria andMsgtypeIsNotNull() {
            addCriterion("msgType is not null");
            return (Criteria) this;
        }

        public Criteria andMsgtypeEqualTo(Integer value) {
            addCriterion("msgType =", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeNotEqualTo(Integer value) {
            addCriterion("msgType <>", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeGreaterThan(Integer value) {
            addCriterion("msgType >", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("msgType >=", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeLessThan(Integer value) {
            addCriterion("msgType <", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeLessThanOrEqualTo(Integer value) {
            addCriterion("msgType <=", value, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeIn(List<Integer> values) {
            addCriterion("msgType in", values, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeNotIn(List<Integer> values) {
            addCriterion("msgType not in", values, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeBetween(Integer value1, Integer value2) {
            addCriterion("msgType between", value1, value2, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("msgType not between", value1, value2, "msgtype");
            return (Criteria) this;
        }

        public Criteria andMsgcontentIsNull() {
            addCriterion("msgContent is null");
            return (Criteria) this;
        }

        public Criteria andMsgcontentIsNotNull() {
            addCriterion("msgContent is not null");
            return (Criteria) this;
        }

        public Criteria andMsgcontentEqualTo(String value) {
            addCriterion("msgContent =", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotEqualTo(String value) {
            addCriterion("msgContent <>", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentGreaterThan(String value) {
            addCriterion("msgContent >", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentGreaterThanOrEqualTo(String value) {
            addCriterion("msgContent >=", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentLessThan(String value) {
            addCriterion("msgContent <", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentLessThanOrEqualTo(String value) {
            addCriterion("msgContent <=", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentLike(String value) {
            addCriterion("msgContent like", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotLike(String value) {
            addCriterion("msgContent not like", value, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentIn(List<String> values) {
            addCriterion("msgContent in", values, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotIn(List<String> values) {
            addCriterion("msgContent not in", values, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentBetween(String value1, String value2) {
            addCriterion("msgContent between", value1, value2, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andMsgcontentNotBetween(String value1, String value2) {
            addCriterion("msgContent not between", value1, value2, "msgcontent");
            return (Criteria) this;
        }

        public Criteria andCsidIsNull() {
            addCriterion("csId is null");
            return (Criteria) this;
        }

        public Criteria andCsidIsNotNull() {
            addCriterion("csId is not null");
            return (Criteria) this;
        }

        public Criteria andCsidEqualTo(Integer value) {
            addCriterion("csId =", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotEqualTo(Integer value) {
            addCriterion("csId <>", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThan(Integer value) {
            addCriterion("csId >", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("csId >=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThan(Integer value) {
            addCriterion("csId <", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThanOrEqualTo(Integer value) {
            addCriterion("csId <=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidIn(List<Integer> values) {
            addCriterion("csId in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotIn(List<Integer> values) {
            addCriterion("csId not in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidBetween(Integer value1, Integer value2) {
            addCriterion("csId between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotBetween(Integer value1, Integer value2) {
            addCriterion("csId not between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andWxaccountidIsNull() {
            addCriterion("wxAccountId is null");
            return (Criteria) this;
        }

        public Criteria andWxaccountidIsNotNull() {
            addCriterion("wxAccountId is not null");
            return (Criteria) this;
        }

        public Criteria andWxaccountidEqualTo(String value) {
            addCriterion("wxAccountId =", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidNotEqualTo(String value) {
            addCriterion("wxAccountId <>", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidGreaterThan(String value) {
            addCriterion("wxAccountId >", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidGreaterThanOrEqualTo(String value) {
            addCriterion("wxAccountId >=", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidLessThan(String value) {
            addCriterion("wxAccountId <", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidLessThanOrEqualTo(String value) {
            addCriterion("wxAccountId <=", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidLike(String value) {
            addCriterion("wxAccountId like", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidNotLike(String value) {
            addCriterion("wxAccountId not like", value, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidIn(List<String> values) {
            addCriterion("wxAccountId in", values, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidNotIn(List<String> values) {
            addCriterion("wxAccountId not in", values, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidBetween(String value1, String value2) {
            addCriterion("wxAccountId between", value1, value2, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andWxaccountidNotBetween(String value1, String value2) {
            addCriterion("wxAccountId not between", value1, value2, "wxaccountid");
            return (Criteria) this;
        }

        public Criteria andGroupidsIsNull() {
            addCriterion("groupIds is null");
            return (Criteria) this;
        }

        public Criteria andGroupidsIsNotNull() {
            addCriterion("groupIds is not null");
            return (Criteria) this;
        }

        public Criteria andGroupidsEqualTo(String value) {
            addCriterion("groupIds =", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotEqualTo(String value) {
            addCriterion("groupIds <>", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsGreaterThan(String value) {
            addCriterion("groupIds >", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsGreaterThanOrEqualTo(String value) {
            addCriterion("groupIds >=", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsLessThan(String value) {
            addCriterion("groupIds <", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsLessThanOrEqualTo(String value) {
            addCriterion("groupIds <=", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsLike(String value) {
            addCriterion("groupIds like", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotLike(String value) {
            addCriterion("groupIds not like", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsIn(List<String> values) {
            addCriterion("groupIds in", values, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotIn(List<String> values) {
            addCriterion("groupIds not in", values, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsBetween(String value1, String value2) {
            addCriterion("groupIds between", value1, value2, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotBetween(String value1, String value2) {
            addCriterion("groupIds not between", value1, value2, "groupids");
            return (Criteria) this;
        }

        public Criteria andAtfriendIsNull() {
            addCriterion("atFriend is null");
            return (Criteria) this;
        }

        public Criteria andAtfriendIsNotNull() {
            addCriterion("atFriend is not null");
            return (Criteria) this;
        }

        public Criteria andAtfriendEqualTo(Integer value) {
            addCriterion("atFriend =", value, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendNotEqualTo(Integer value) {
            addCriterion("atFriend <>", value, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendGreaterThan(Integer value) {
            addCriterion("atFriend >", value, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendGreaterThanOrEqualTo(Integer value) {
            addCriterion("atFriend >=", value, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendLessThan(Integer value) {
            addCriterion("atFriend <", value, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendLessThanOrEqualTo(Integer value) {
            addCriterion("atFriend <=", value, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendIn(List<Integer> values) {
            addCriterion("atFriend in", values, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendNotIn(List<Integer> values) {
            addCriterion("atFriend not in", values, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendBetween(Integer value1, Integer value2) {
            addCriterion("atFriend between", value1, value2, "atfriend");
            return (Criteria) this;
        }

        public Criteria andAtfriendNotBetween(Integer value1, Integer value2) {
            addCriterion("atFriend not between", value1, value2, "atfriend");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}